const {
	exec,
	escape
} = require('../db/mysql');

function login(username,password){
	username = escape(username)
	password = escape(password)
	let sql = `select username, realname from users where username=${username} and password=${password}`
	return exec(sql)
}

module.exports = {
	login
}